<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="format-detection" content="telephone=no, email=no" />
	<meta name="keywords" content="关键字" />
	<meta name="description" content="描述" />
	<title>demo</title>
	<link rel="stylesheet" href="css/style.css" />
	<link rel="stylesheet" href="css/swiper.min.css" />
	<link rel="stylesheet" href="css/animate.min.css" />
	<script src="js/jquery-1.8.0.min.js"></script>
	<script src="js/swiper.min.js"></script>
	<script src="js/swiper.animate1.0.2.min.js"></script>
	<script>
        function resize(originSize,type) {
            var type=type||"x";
            var widths=document.documentElement.clientWidth;
            var heights=document.documentElement.clientHeight;
            if(type=="x"){
                var scalex=widths/originSize*100;
                document.querySelector("html").style.fontSize=scalex+"px";
            }else if(type=="y"){
                var scaley=heights/originSize*100;
                document.querySelector("html").style.fontSize=scaley+"px";
            }
        }
        resize(750*2.5);
	</script>
</head>
<body>
<div class="swiper-container">
	<div class="swiper-wrapper">
		<div class="swiper-slide">
			<div class="t1_left">
				<img src="image/text-top.png" alt="" class="ani" swiper-animate-effect="bounceInDown" swiper-animate-duration="1s" swiper-animate-delay="4s"/>
			</div>
			<div class="t2_left">
				<img src="image/text-bottom.png" alt="" class="ani" swiper-animate-effect="fadeInUp" swiper-animate-duration="1s" swiper-animate-delay="4.2s"/>
			</div>
			<div class="t_right">
				<img src="image/ef.png" alt="" class="ani" swiper-animate-effect="bounceInRight" swiper-animate-duration="0.5s" swiper-animate-delay="5s"/>
			</div>
			<div class="person">
				<img src="image/person.png" alt="" class="ani" swiper-animate-effect="flipInX" swiper-animate-duration="2s" swiper-animate-delay="2.8s" style="transform-origin:bottom;" />
			</div>
			<div class="earth">
				<img src="image/earth1.png" alt="" />
			</div>
			<div class="flag" >
				<img src="image/flag.png" alt="" class="ani" swiper-animate-effect="flipInX" swiper-animate-duration="2s" swiper-animate-delay="2.2s"  style="transform-origin:bottom;" /> 
			</div>
			<div class="cloud_l" >
				<img src="image/cloud-l.png" alt="" />
			</div>
			<div class="cloud_r">
				<img src="image/cloud-r.png" alt="" /> 
			</div>
			<div class="big_fei">
				<img src="" alt="" class="fei_gj"/>
			</div>
		</div>
	</div>
</div>
<img src="image/fei/fei1.png" alt="" class="hide">
<img src="image/fei/fei2.png" alt="" class="hide">
<img src="image/fei/fei3.png" alt="" class="hide">
<img src="image/fei/fei4.png" alt="" class="hide">
<img src="image/fei/fei5.png" alt="" class="hide">
<img src="image/fei/fei6.png" alt="" class="hide">
<img src="image/fei/fei7.png" alt="" class="hide">

<script type="text/javascript">
    $(".swiper-container").width($(window).width()).height($(window).height());
    var mySwiper = new Swiper('.swiper-container', {
        width:$(window).width(),
        height:$(window).height(),
        direction : 'vertical',
        onInit: function(swiper){ //Swiper2.x的初始化是onFirstInit
            swiperAnimateCache(swiper); //隐藏动画元素
            swiperAnimate(swiper); //初始化完成开始动画

        },
        onSlideChangeEnd: function(swiper){
            swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
        }
    });
    $(function(){
		/*
		 *利用gif做
		*/
        // var a=1;
        // $(".huiji").attr("src","image/huiji.gif");
        // setTimeout(function(){
        // 	a++;
        // 	if(a>=2){
        // 		$(".huiji").attr("src","");
        // 		$(".huiji").attr("src","image/big-fei.png");
        // 	}
        // },1000)
		/*
		*利用分层图片做
		*/
        var num=1;
        var t=setInterval(function(){
            $(".fei_gj").attr("src","");
            $(".fei_gj").attr("src","image/fei/fei"+num+".png");
            num++;
            if(num>7){
                clearInterval(t);
            }
        },150)
        //云动
		//document.querySelector(".cloud_l").addEventListener("webkitAnimationEnd", function(){
		//       $(".cloud_l").animate({"left":"60%"},3000)
		//}, false);
		//document.querySelector(".cloud_r").addEventListener("webkitAnimationEnd", function(){
		//       $(".cloud_r").animate({"right":"60%"},3000)
		//}, false);
    })
</script>
</body>
</html>
